<!doctype html>
<html lang="{{ app()->getLocale() }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        <!-- Fonts -->
        <link href="https://fonts.googleapis.com/css?family=Raleway:100,600" rel="stylesheet" type="text/css">

        <!-- Styles -->
        <style>
            html, body {
                background-color: #fff;
                color: #636b6f;
                font-family: 'Raleway', sans-serif;
                font-weight: 100;
                height: 100vh;
                margin: 0;
            }

            .full-height {
                height: 100vh;
            }

            .flex-center {
                align-items: center;
                display: flex;
                justify-content: center;
            }

            .position-ref {
                position: relative;
            }

            .top-right {
                position: absolute;
                right: 10px;
                top: 18px;
            }

            .content {
                text-align: center;
            }

            .title {
                font-size: 84px;
            }

            .links > a {
                color: #636b6f;
                padding: 0 25px;
                font-size: 12px;
                font-weight: 600;
                letter-spacing: .1rem;
                text-decoration: none;
                text-transform: uppercase;
            }

            .m-b-md {
                margin-bottom: 30px;
            }
             .vaptcha-init-main {
                 display: table;
                 width: 100%;
                 height: 100%;
                 background-color: #EEEEEE;
             }
            .vaptcha-init-loading {
                display: table-cell;
                vertical-align: middle;
                text-align: center
            }
            .vaptcha-init-loading>a {
                display: inline-block;
                width: 18px;
                height: 18px;
                border: none;
            }
            .vaptcha-init-loading>a img {
                vertical-align: middle
            }
            .vaptcha-init-loading .vaptcha-text {
                font-family: sans-serif;
                font-size: 12px;
                color: #CCCCCC;
                vertical-align: middle
            }
        </style>
    </head>
    <body>
        <div class="flex-center position-ref full-height">
            @if (Route::has('login'))
                <div class="top-right links">
                    @auth
                        <a href="{{ url('/home') }}">Home</a>
                    @else
                        <a href="{{ route('login') }}">Login</a>
                        <a href="{{ route('register') }}">Register</a>
                    @endauth
                </div>
            @endif

            <div class="content">
                <div class="title m-b-md">
                    Laravel 自动部署
                </div>

                <div id="vaptchaContainer" style="width: 300px;height: 36px;">
                    <div class="vaptcha-init-main">
                        <div class="vaptcha-init-loading">
                            <a href="/" target="_blank">
                                <img src="https://cdn.vaptcha.com/vaptcha-loading.gif" />
                            </a>
                            <span class="vaptcha-text">Vaptcha启动中...</span>
                        </div>
                    </div>
                </div>

                ​
            </div>
        </div>
    {{--vid 5c3fe6a9fc650e7e141c4f74   key bc8c509a40d54182b386c56a8ce1e320--}}
    </body>
    <script src="https://cdn.vaptcha.com/v2.js"></script>
    <script>
        vaptcha({
            //配置参数
            vid: '5c3fe6a9fc650e7e141c4f74', // 验证单元id
            type: 'click', // 展现类型 点击式
            container: '#vaptchaContainer' // 按钮容器，可为Element 或者 selector
        }).then(function (vaptchaObj) {
            console.log(vaptchaObj.render());// 调用验证实例 vaptchaObj 的 render 方法加载验证按钮
        })
    </script>
</html>
